package com.lanqiao.attendance.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 刘华
 */
@ApiModel(value = "管理员")
@Data
@TableName("tb_administrator")
public class Administrator {

    @TableId(value = "id",type = IdType.AUTO)
    private long id;
    @ApiModelProperty("用户名")
    private String admUsername;
    @ApiModelProperty("密码")
    private String admPassword;
    @ApiModelProperty("手机号")
    private String admTelephone;
    @ApiModelProperty("地址")
    private String admAddress;
    @ApiModelProperty("状态")
    private String admStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date admCreateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date admUpdateTime;
    @ApiModelProperty("邮箱")
    private String admEmail;
    private String admRole;
    private String admAvator;
    private String name;
}
